<html>
	<head>
		<title></title>
		<script type="text/javascript">
			function getwebsite(){
				var site = 'http://127.0.0.1:8020/rgb2hex/index.html'; 
				var sitecom = 'http://www.baidu.com/afasdfadsfafadsfaf/sadf/afadsf';
				var reg = /^http:\/\/([a-z0-9A-z]+.[a-z0-9A-z]+.[a-z0-9A-z]+.[a-z0-9A-z])+:[^s]*$/;
				var res1= site.match(reg);
				console.info(res1);
				var regcom = /([a-zA-z]+:\/\/[^s^\/]*\/)[^s]*/ 
				var res2 = site.match(regcom);
				console.info(res2);
			}
		</script>
	</head>
	<body onclick="getwebsite()">
	</body>
</html>
